Image upload and navigation fix