Object-based canvas drawing