Add some mimetypes for transforms to work with
Use actual image output
Add transform for R code
Only output text if it's not none