make offscreenImage.onload output image/jpeg