Changed the reg ex to be extension agnostic for image sources.