2nd try to resize img