move function get_loaded_image() from carousel.js to load_images.js