added animation flag
changed gif to default as false