function keep_max() {
	max_width  = 50 ;
	max_height = 50 ;
	for (i in document.images) {
		if (document.images[i].className != 'profile_photo') continue ; // 

		if (document.images[i].width > document.images[i].height &&
			document.images[i].width > max_width) {
			document.images[i].width = max_width ;
		} else {
			if (document.images[i].height > max_height) { 
				document.images[i].height = max_height ; 
			}
		}
	}
}