Fixed a bug with the picture upload