libfimg: Initial work on conversion to new DRM-based API part 3

It almost works...

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>