Cropping and drawing ImageBuffers results in uninitialized data being shown