openfimg: Implement missing bits in code generator and assembler

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