rewrite language support to support multiple images