added support for images of any extension
added support for images of any extension