More or less working image serving and image upload