Function to initialise the origin picture and gen picture surfaces.
Function to free the origin picture and gen picture surfaces.