Updated Regex for bmp/tiff images