Export Handler for Image formats like jpg, png.
Function to handle the export process
Writes the image to file.
[Validate]