add new parameter hex_content in decode_image method
add test case for hex_content parameter in decode_image