added option to make only background fits