Now handles filenames with filename endings like the wordpress resized filenames. i.e. somefilename-123.png