prevent image becoming ugly