Rounding of x y to avoid problems with non-integer offsets
Ensured proper deletion of temporary paint object
Added primitive zooming