Calculate image position correctly for color.