added multiple image support