Images in home page course list are now generated conditionally with layout type