Changed media folder permission to 775.