image W/H error on edit + JS slowness