A former gymnast turned film-maker has told how her traumatic experience competing in the sport has inspired her latest work.