REFACTOR centralized handling of imageUrl thumbnails with error check
FIX centralized handling of imageUrl thumbnails with error check