zoom from center working but not paint from corner