Added quality method to Medium to set the compression