Fixed syntax errors in function names for image upload