Move change image source's methods inside viewer
Move change image source's methods inside viewer

Added the methods inside the extend function, so that they appear
as properties. Since we cannot reference properties of an object inside
said object, we extract them as properties when needed.

openseadragon/openseadragon,openseadragon/openseadragon