Updates the image_hack wurl writer to write image data without crashing

 - Before and after this fix, the output is less than beautiful.