Fix a bug where bg image w is not what is requested
Remove unnecessary toInts
Upgrade to scala 2.10.3