add gem rmagic, add pic resize, removed old "filename" to "img_name", add img thumbl