Switch from regexp to ends_with? for image extension validator