try to solve captureImage bug