Fix calculation of pixel coordinates when setting image extent by center...