Minimal support for image data manipulation (read and write) in AppleCoverBox

Minimal refactor and cleanup.