Link and image cleanup