Replaced camanjs build with the one from my own fork with an extended toBase64() method that takes quality. Images are now compressed client side when they are saved after an edit.