Change regex pattern to match image files.