Fixed mistakes in AnimatedPicture
Added isPlaying function to AnimatedPicture