Fixing image detection regex for casing