fixes imaging test (related to #603) - thanks @megies