add more flexibility to image loading animations