get_frames - templates improve #21