Implement image upload. Fix ?after query regression.