Changed the logic of the pictures remotion.