Improved memory canvas runtime with specialized format implementations

Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
Minor simplifications in Xlib backend

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