Get image dimensions by parsing its filename