adding checking states, cleaned up image rendering a bit, click to reveal