Update to rails 4.0, solve part image loading problem