prototype for upload/download images