classes: refactor image_types_fsl.bbclass
classes: refactor image_types_fsl.bbclass

Combine same code into one function.

Signed-off-by: Stefan Christ <c04781dbce194802ec6a6311a1200fbcd0141e96@phytec.de>

PHYTEC-Messtechnik-GmbH/meta-phytec,PHYTEC-Messtechnik-GmbH/meta-phytec,PHYTEC-Messtechnik-GmbH/meta-phytec,PHYTEC-Messtechnik-GmbH/meta-phytec,PHYTEC-Messtechnik-GmbH/meta-phytec