I have a component that is a wrapper to the canvas. In the component I have a function that resizes the canvas and then puts imageData onto it. This all works and the canvas is