Refactoring.

Renamed all references to image to link.
Improved code reusability.