correcting img scaling issues 3nd attempt