Make sure img is loaded correctly