fixed resizing of images,