changed jpg ext to lowercase