Almost finished edit function
Handled the cas where the header image might change