split image_open into open/save, convert to gray in alpha