Updated imagereader to switch between READ/WRITE mode with soft refresh.