shrinking the Photo class for smaller compiling