some further work for multiple image suppoert ofr categories