Rename
Create separate class for drawing curve from memory.