Changing url to be the link to image vs attachment page