Remove more old references to canvas-element function calls in favour of raw image data processing, include "imagedata": 1 setting, and move scaling routine to a pure rgba bytes routine.
Buffer decoded base64 data.