Faster random image method