code: function copyImageDataWithCanvas ( imageData ) {
  	const canvas = new Canvas( imageData.width, imageData.height );
  	const ctx = canvas.getContext( '2d' );
  	ctx.putImageData( imageData, 0, 0 );
  				
  	return ctx.getImageData( 0, 0, imageData.width, imageData.height );
  }
docs: http://stackoverflow.com/a/11918126/229189