Added method for converting actual coordinate to pixel coordinate in image