Bug 840038 - [MMS][User Story] Image rescaling to 300kB

* Image rescaling utility implementation: https://bugzilla.mozilla.org/show_bug.cgi?id=840038 
* Fix the sms unit test and add test case for rescaling function.