Made sure images are scaled properly.