I\'ve got your average e-Commerce app, I store ITEM_IMAGE_NAME in the database, and sometimes managers MISSPELL the image name.
To avoid \"missing images\" (red X in IE
I think your way is pretty much OK. I'd do it in a function or do in .categoryImage accessor.