processing actually does know the current project directory. you can load and save files without any directory.
you can also go from there to a folder inside your sketch folder, for example loadImage("data/1.jpg"); or a previous folder loadImage(../1.jpg); or do you really need the NAME ?