Added pre-processor flag to disable memory canvas

Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>