Use SplFileImage instead of raw paths