Fixed 'contain' option not working.