Fixed Photo::getPath method