Code review by Daniel

Change-Id: I7c04502efa76ec7778b419ac6036f3544b284a31
Moved Jpeg Compression to a separate class for easier unit testing.

Change-Id: Iaa5494dba41e4efd34516c03eb6a579b7ffeea5f