check for clicked image before tagging, debugging