fileinfo works now
write directly mirrored to the image,
need to write direct into image for performance