how did this work without a regex for original images?