It appears to be alright as long as it is only an image in your mind.

I would like to know if a person is allowed to have a mental image of the prophet (May Allah’s peace and blessings be on him) when remembering him? This is easy to imagine through reading about the physical appearance of the prophet saw e.g. beard, beautiful smile, average height etc? Is it permissible to have this image?