added sample for related assets, some code to support images