The following code works, I mean that it prints the image, but I need to get the image from the current directory and I don't know how. (I tried just using the file name for the path name, but that didn't work for some reason.)
That won't work, because stringByStandardizingPath doesn't expand tildes. You need to use stringByExpandingTildeInPath.
Of course, ~ doesn't represent the working directory, so maybe that's not what you want. There are a number of path-related NSString methods. I recommend you look at them all, so you are familiar with what is there.
The following code works, I mean that it prints the image, but I need to get the image from the current directory and I don't know how. (I tried just using the file name for the path name, but that didn't work for some reason.)