quick & dirty image manipulation using HTML5 canvas