Fix require_once to import imagine properly and add mobile device compatibility