Finally got crop and resize on upload working!