updated image, fixed a bug in the file finalizer func