add conditional for pages images present