When Courbet was transferred to Sainte-Pélagie prison, he obtained permission from the prison director to paint still-lifes with fruit, a genre he had previously neglected.