pulling images the rails way