Add top 5 image functionality to displayimage