fix photo.success complete and onload method set correctly