Change the jpeg compression function so that it can be passed a filename instead of using a hardcoded one.