function for image sprite and clickable feature