fn animated_image_frame_index(ctx: &Context, uri: &str) -> usize
Calculates at which frame the animated image is