Image processing API for pure JavaScript