fixed image uploading, and display inheader

this is the check for our uploaded avatar image