how can i load an animate cursor or icon from resource file