Image atlas bug fix