Added constrain proportions option. Todo: Add template options.