In general your paint should not be creating objects or working out where to draw things. All that work should have already been done prior to you generating the paint message.

This is because...