Simple Javascript Image editor