made if/else to not include null pictures