added type image/gif to loadFromBytes