Fixed bug with drawing grids multiple times with cubes

This also fixes the issue with setting linestyle, color etc for data cubes for APLpy.