Text secure image quality setting

This PR implements a setting for image attachment quality. The choice can be made in the settings for Low, Medium or High.

Two methods are used to compress the original image into something that can be realistically sent over a sluggish network : 

* Size 
* JPEG compression + compression rates

Both of these parameters have been set through trial and error but can be adapted at will. (See comments)