fix bug when user-image is not specified