fromBytes

fun fromBytes(filename: String, data: ByteArray): AgentImage

Create an AgentImage from raw bytes, auto-detecting MIME type based on file extension