picture error handling