fix for rectangle fill best fit
added engine interface
Merge remote-tracking branch 'origin/master' into samples