Handle images that do not have .jpg/.png extensions.