add sprite to resource