set max resolution as custom view