add max width and height options
merge