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

It still almost works... (but we are closer now)

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
libfimg: Initial work on conversion to new DRM-based API part 5

It works! Now it's time to clean everything up.

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