add load image callback and new option for fit resize and resize event