Slight improvement to image centering