Fixed camera error and clear images now works