Is there someway to automatically compress/optimize images as soon as attached by user to keep it within 2MB limits? If you can provide such a tutorial would be of great help.