Add set seed before reading image data