Using webkit's method for determing frame durations of various gif images