Make sure file exists
Extract frame specific stuff
Rewrite ff_load_image to use dbg.h