Separate canvas object to different file