Canvas being cleared before new image is drawn

Should solve issue #396