Add bestImageUrl helper for choosing image versions from preferred list
Ignore generated lib/*.js files