removed oneHalfImageWidth nonsense