Set JPEG compression on layers