Add custom sizing of phantomjs method