deleting old images and resize head pic