move logic to use latest image file attachment to class method for common use (#3261)
Authored by: tmaruyama 2011-11-24
Parent: [r7907]
Child: [r7909]