#5 added support of photo uploading