Updated template classes
Updated preRender naming and resizeImage function