Revert to PHP image upload handling