jpeg compression as server side option