added if statement to application layout to show if picture if one is present