Declarative browser-based image manipulation