delete imagesize function and change if else for guest avatar