update to image type in js/index