load function overloaded to accept ofPixels object instead of a path