implemented pre resize
implemented multi-context upload_to fix
implemented pre resize