Refactored the Raphael.js dependent drawing code out of cellculture.