more changes for picture upload