fixed minor image resizing bug