Extracted ImageDto interface.

Addressed to #132

No functional changes.