fixed sprite constructor