Fixed regexp bug triggered by dots in the path to the image being manipulated.
1.8.12