Center and scale image properly