progress
fixing intersection math for png