implementing picture upload/download