Bugfixed load photo file