Cache image data, remove debug output