removed the rtp_generate_thumbs function