implemented crossfade between images