fixed resizing of img