changed regexp to find first image in topic