Create and use own image data container.

Resolves #1