Because I can't just comment your question based on missing reputations, I have to give you the hint by writing an answer.
Have you already tried to overwrite the ImageViewHelper? It says: 'Resizes a given image (if required) and renders the respective img tag'. Maybe it's possible to always process your images by overwriting the viewhelper.