Compute images params once and for all