correcting img scaling issues