Fixed basePath problem for images set from controller.