switch up mime depending on ds sent to viewer