support multiple images per frame