Added duration property to UFMFFile.
Fixed bug adding non-uint8 frame images.
All public methods are now checking if the file has been closed.