fixes #19 Fit to view API has been added.