added image functionality to custom component version