Added pictures logic.