Added loader image effect to the script.