Added debugging method for photo upload