decided not to draw sprite if frame is null