Merge pull request #15 from ispiridonov/master

Image.pm: fix save method
- Fixed detection of file extensions
- Fixed deleting images in Image.pm