fixed bugs, clicking image to get pixel value now works