made js solution for spitting out images