Update options on execution time

Hello yangkun, other need come up when was i using the lib, i had to update the options on execution time, so i can manage the same sprite for multiple purposes. I don't know if this interest you, it's just a plus and don't break any previous work, so i think that is a good merge.