image resizing was fixed