updates to cat; figure out how to output images