correctly get active/clicked image to set as wp