Added preliminary readimage impl