JavaScript Image Upload, Canvas, and Local Storage Example