fixed image drawing - first time requires redraw when image.onload is reached
also addede custom node shape to public API