try-catch bitmap changes