added support for creating thumbnails from BMP files also