support more extensions for image files such as jpeg, tiff, bmp.