fix issues with multiple images