bypass Image.open on unknown formats for inline-image