Fixed Delete Crash + Only loading valid files

- Fixed a problem where vimage couldn't delete an image if it was the
last one in the folder (though the file was still being used by the
process).
- vimage now only tries to load files with the extensions that are
listed in the EXTENSIONS array.
- If vimage fails to load a .ico it will try loading it again but as an
animated gif.