Remove screenshot functionality

It was only meant for debugging and brought with it
unneeded platform dependant issues.