Ticket #23213 - Move upload thumbnail logic into a hook.