Fix expected image data length