added option to reshape figure size