firmware-utils: tplink-safeloader: use one function for generating images