Add if to photo load