implemented foundation, rmagick and configed img uploading