Bug fix - rendering canvas twice. Affected all image output [Issue#19]