added regex for image files