Implemented support for multiple images.