Simple Javascript image editor