Transfered the media path to bean.