Decode the file and extract a single image from it. If the file is
animated, and frame is specified, that particular frame will be decoded.
Otherwise if the image is animated and frame is null, the returned
Image will include all frames. If there was a problem decoding the
Image, null will be returned.
Decode a single frame from the data that was set with startDecode.
If frame is out of the range of available frames, null is returned.
Non animated image files will only have frame 0. An Image
is returned, which provides the image, and top-left coordinates of the
image, as animated frames may only occupy a subset of the canvas.