added photo uploading
fix tests