Used Javascript to append images