Customizable JavaScript image loader