Make regex same as one used in the program, allowing any filename.png