correcting img scaling issues 2nd attempt