Fixes image ordering