added conditional options to get images