genericified some image functions
added heatmap degradation options