Added categories and fixed length of imageview