Refactor and Disable links to image attachment URL

Forced galleries to link to file, rather than the default attachment URL

Signed-off-by: Matthew Ell <ell.matthew@gmail.com>