fixed bug intermittently load image first while flow control enabled
merged conflicts