Trying to get garbage collection to work on image resizing on the canvas
object