fix single sample mask upload
fix flag handling across multiple databases
depreciate 32bit image_server.
Too many memory problems encountered.