Create and use own image data container.

Resolves #3