resize image instead of form