Updated JPEG to use 0-100 for compression instead of 0-1. Added tests for jpeg writer.