fixed so urls are lowercase in is_image function