added photo upload for photo model