An example to implement custom loading indicator using UIImageView