added pictures & pdf conditionally to the right pages via carrierwave