Fixed department image update issue and modified according to comment.