added multiple image directories as an option