Text this: Quality-based Spatial/Spectral Image Transformation