Fixed a bug on category image loading

and increased speed ad memory saving of image loading on categories