added photo upload support