fix images being used in wrong order