Bug 728633 - Improvements to the file-raw plugin

Export the image before saving as raw image data.