Fixed problems with uploading pictures