slight modification to MWPhoto

to fix the loading issue