Fixed a bug with picture-upload