compress profile photo to a smaller size, slight modification on navbar