Fixed error displaying animated images