fix up canvas element to match size of static image, and remove black padding/margin