Images: Make the image tool self contained

* Now the module has no connection to other modules except the hook

Helps us to load the module on demand

Change-Id: I3fc0dd8b2eddc45027640f1e762dbdc4a95eba9b