image to series conversion