Refactors ghost images