using CSV gem for logging
fixed image history bug