Scales images correctly