added media api
added medias image for test
added media_spec.rb