debugging needed still. added colored corners for image