Correct issue with first image of the stack getting corrupted.