make it possible to influence output type of \OC_Image

please review @DeepDiver1975 @schiesbn @PVince81