implemented picture upload and delete