Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.
The issue I had was if you didn't read the full image, but tried to read only part of the image the start positions were not correctly calculated. No issue if full images were read.