add support for generated images without an extension