Move rating image path generation to client-side