fix scaled image issue