Fix image upload and test html