resize the submit preview image