Would be more efficient to let the user scale this image output , and choose the image type (png, jpg, etc.).