Added function to change jpeg compression on file uploads