patched title to work with latest youtube-dl and updated the conditional statement for whether a gif will loop backwards on the last frame