recreate imageData if canvas sizes have changed