[#72914588] Refactored logic into helper, added css styling to user thumbnails

Signed-off-by: Emily Platzer <emilyplatzer@gmail.com>