renew front template.
add photo auto size function code in image-better.js