remove image data from getPhotoById method