made image regex case-insensitive