Resolve issues with serving of uploaded files and handling of images.