last version of resize before upload