added more image file type tolerance