Updated AnimatedMessage to use ImageInputStreams, to allow getResource() compatability